Extension lambdas
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
12 posts · page 1 of 2
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
Recursion is the programming technique of calling the function within the same function. A recursive function uses the result from the previous recursive call. The perfect example for recursion is fi…
What exactly is local function? It was new to me in Kotlin and thought it is interesting to dig deeper. In a normal class, we have many functions within a class - the functions have names so that we…
fold() combines all elements of a list, in order to generate a single result. Here is how we can use fold() to calculate the sum -
What is Sequence? A Kotlin Sequence is like a List, but you can only iterate. You cannot index into Sequence. And this restriction produces very efficient chained operations.
Maps are extremely useful programming tools, and there are numerous ways to construct them. Let’s recap what we learned in List.
We love List. In fact, many of our work involve using List to store many piece of information. We then apply different operations on List to make it what we need for our application.
What is it? If you are coming from JavaScript, this concept may sound familiar to you. Otherwise, here is what it means.